package spring.ioc.xml.controller;

import spring.ioc.xml.pojo.Student;
import spring.ioc.xml.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import jakarta.annotation.Resource;
import java.util.List;

/**
 * description:
 */

@Controller
public class StudentController {

    @Resource(name="studentServiceImpl")
    private StudentService studentService;

    public void findAll(){
        List<Student> all = studentService.findAll();
        System.out.println("all = " + all);
    }
}
